package movee.zookeeper.leader.selector.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 *
 *
 * @author movee
 */
@Data
@ConfigurationProperties(value = "zookeeper.curator")
@Component
public class ZkClientConfig {

    private String connectString = "localhost:2181";
    private Integer sessionTimeoutMs = 60000;
    private Integer connectionTimeoutMs = 3000;

    private String leaderLatchPath = "/leader/selector";

    private Integer baseSleepTimeMs = 3000;
    private Integer maxRetries = 3;

}
